package com.koron.plan.web.maintainplan.bean.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author twcao
 * @title: OrderDispatchDto
 * @projectName GDH_EAM_V2
 * @description: 派工信息
 * @date 2022/3/117:25
 */
@Data
public class OrderDispatchDto {

    @ApiModelProperty(value = "唯一id")
    private String id;

    @ApiModelProperty(value = "工单类型:日常维护工单、检修维护工单、大修工单、实验工单、缺陷工单")
    private String orderType;

    @ApiModelProperty(value = "工单表ID")
    private String orderId;

    @ApiModelProperty(value = "是否外单位")
    private Integer isOut;

    @ApiModelProperty(value = "本单位责任人账号,选择是外单位，则为跟踪负责人；若选择不是外单位，则为负责人")
    private String leader;

    @ApiModelProperty(value = "本单位责任人名称")
    private String leaderName;

    @ApiModelProperty(value = "外单位负责人账号")
    private String outLeader;

    @ApiModelProperty(value = "外单位负责人名称")
    private String outLeaderName;

    @ApiModelProperty(value = "工作负责人单位ID")
    private String deptWork;

    @ApiModelProperty(value = "工作负责人单位名称")
    private String deptWorkName;

    @ApiModelProperty(value = "工作内容")
    private String context;

    @ApiModelProperty(value = "注意事项")
    private String attention;

    @ApiModelProperty(value = "创建人账号", hidden = true)
    private String createBy;

    @ApiModelProperty(value = "创建人姓名", hidden = true)
    private String createByName;

    @ApiModelProperty(value = "创建时间", hidden = true)
    private Date createTime;

    @ApiModelProperty(value = "更新人账号", hidden = true)
    private String updateBy;

    @ApiModelProperty(value = "更新人姓名", hidden = true)
    private String updateByName;

    @ApiModelProperty(value = "更新时间", hidden = true)
    private Date updateTime;

    @ApiModelProperty(value = "是否提交")
    private Boolean isCommit;

    @ApiModelProperty(value = "工单派工成员")
    private List<OrderDispatchWorker> orderDispatchWorker;

    @ApiModelProperty(value = "工单作业单位列表")
    private List<OrderWorkDeptPo> orderWorkDeptPoList;
}
